package com.ch3cooh.producer.service;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FooService {

    @Autowired
    MqService mqService;

    public boolean foo(){
      //do something

        return mqService.send(3,"登录成功！");

    }


    public boolean foo2(){
        //do something

        return mqService.sends(3,"群发了一条消息！");

    }

    public boolean fooFanout(){
        //do something

        return mqService.sendFanout(3,"广播了一条消息！");

    }
}
